/**
 * Created by zhaoxk on 2016/10/27.
 */
const report = {
    id: 'report01',                                 //报告id
    status: 0,                                      //报告状态，具体有啥状态再议
    patient: {                                      //关联患者信息
        id: '1',
        name: '张三',
        age: '11',
        gender: 'F'
    },
    edit: {                                         //编辑信息
        createDate: '2016-10-27 12:12:12',
        lastModifyDate: '2016-10-27 12:56:36',
        creator: {
            id: '1',
            name: '江雁容'
        },
        lastEditor: {
            id: '1',
            name: '江雁容'
        }
    },
    items: [
        {
            type: 't0',
            data: [
                {
                    reason1: '白内障术后1个月',
                    date: '2016-09-06',
                    reason2: '',
                    remark: '备注',
                    attImg: [
                        {
                            id: 'image_id_01',
                            name: 'test1',
                            eye: '',
                            type: 'jpg',            //图片的类型没啥用
                            remark: '图片的备注信息'
                        },
                        {
                            id: 'image_id_02',
                            name: 'test2',
                            eye: '',
                            type: 'jpg',
                            remark: '图片的备注信息'
                        },
                        {
                            id: 'image_id_03',
                            name: 'test3',
                            eye: '',
                            type: 'jpg',
                            remark: '图片的备注信息'
                        }
                    ]
                },
                {
                    reason1: '白内障术后2个月',
                    date: '2016-09-06',
                    reason2: ''
                },
                {
                    reason1: '',
                    date: '2016-09-06',
                    reason2: ''
                }
            ]
        },
        {
            type: 't1',
            data: [
                {
                    type: '右眼',
                    mainDes: '发红',
                    position: '10点钟',
                    duration: '20分钟'
                },
                {
                    type: '双眼',
                    mainDes: '发红',
                    position: '靠近视盘下方',
                    duration: '40分钟'
                }
            ]
        },
        {
            type: 't2',
            data: []
        },
        {
            type: 't3',
            data: [
                {
                    type: '裸眼视力',
                    valueR: '1.5',
                    valueL: '1.0'
                },
                {
                    type: '戴镜视力',
                    valueR: '2.0',
                    valueL: '1.5',
                    remark: '眼镜不是白配的'
                }
            ]
        },
        {
            type: 't4',
            data: [
                {
                    type: '非接触式眼压',
                    valueR: '10.00',
                    valueL: '8.00',
                    medicate: '没用',
                    date: '2016-09-09'
                }
            ]
        }
    ]
};
const cates = [
    {
        id: 'c0',
        label: '就诊类别'
    },
    {
        id: 'c1',
        label: '病史采集'
    },
    {
        id: 'c2',
        label: '常规检查'
    },
    {
        id: 'c3',
        label: '前段检查'
    },
    {
        id: 'c4',
        label: '后段检查'
    },
    {
        id: 'c5',
        label: '其他体征'
    },
    {
        id: 'c6',
        label: '辅助检查'
    },
    {
        id: 'c7',
        label: '诊断'
    },
    {
        id: 'c8',
        label: '计划'
    }
];
const types = [
    {
        id: 't0',
        cat: 'c0',
        label: '就诊原因',
        renderData: [
            {
                type: 'input',
                name: 'reason1',
                label: '门诊原因',
                placeholder: '请输入就诊原因',
                size: 'sm',
                tips: [
                    'dict',
                    'gender'
                ],
                rules: [
                    {
                        required: true,
                        message: '必填项'
                    }
                ],
                dataMethod: 'ajax',
                dataSource: 'dict',
                dataArgs: {type: 'blood'}
            },
            {
                type: 'datepicker',
                name: 'date',
                label: '转诊日期',
                placeholder: '请选择转诊日期',
                size: 'sm',
                disabledDate: current => current && current._d > Date.now()
            },
            {
                type: 'input',
                name: 'reason2',
                label: '转诊原因',
                placeholder: '请输入转诊原因',
                size: 'sm',
                dataMethod: 'ajax',
                dataSource: 'dict',
                dataArgs: {type: 'gender'}
            }
        ]
    },
    {
        id: 't1',
        cat: 'c1',
        label: '主诉',
        renderData: [
            {
                type: 'input',
                name: 'type',
                label: '眼别',
                placeholder: '请输入眼别',
                size: 'sm',
                dataSource: 'dict',
                dataArgs: {type: 'insurance'}
            },
            {
                type: 'input',
                name: 'position',
                label: '方位',
                placeholder: '请输入方位',
                size: 'sm',
                dataSource: 'dict',
                dataArgs: {type: 'charge'}
            },
            {
                type: 'input',
                name: 'duration',
                label: '持续时间',
                placeholder: '请输入持续时间',
                size: 'sm'
            },
            {
                type: 'input',
                name: 'mainDes',
                label: '主诉',
                placeholder: '请输入主诉',
                size: 'lg'
            }
        ]
    },
    {
        id: 't2',
        cat: 'c1',
        label: '现病史',
        renderData: [
            {
                type: 'radio',
                name: 'testRadio',
                label: '测试单选',
                placeholder: '请输入主诉',
                tips: [
                    {
                        value: '1',
                        label: 'radio1'
                    },
                    {
                        value: '2',
                        label: 'radio1'
                    },
                    {
                        value: '3',
                        label: 'radio3'
                    }
                ],
                size: 'lg',
                dataSource: 'dict',
                dataArgs: {type: 'professional'}
            }
        ]
    },
    {
        id: 't3',
        cat: 'c2',
        label: '视力类型',
        renderData: [
            {
                type: 'input',
                name: 'type',
                label: '类型',
                placeholder: '请输入检查类型',
                size: 'sm'
            },
            {
                type: 'input',
                name: 'valueL',
                label: '左眼',
                placeholder: '请输入左眼视力',
                size: 'sm'
            },
            {
                type: 'input',
                name: 'valueR',
                label: '右眼',
                placeholder: '请输入右眼视力',
                size: 'sm'
            }
        ]
    },
    {
        id: 't4',
        cat: 'c2',
        label: '眼压类型',
        renderData: [
            {
                type: 'input',
                name: 'type',
                label: '类型',
                placeholder: '请输入检查类型',
                size: 'md'
            },
            {
                type: 'input',
                name: 'valueL',
                label: '左眼',
                placeholder: '请输入左眼眼压',
                size: 'xs'
            },
            {
                type: 'input',
                name: 'valueR',
                label: '右眼',
                placeholder: '请输入右眼眼压',
                size: 'xs'
            },
            {
                type: 'input',
                name: 'medicate',
                label: '用药',
                placeholder: '请输入用药信息',
                size: 'lg'
            },
            {
                type: 'datepicker',
                name: 'date',
                label: '发生时间',
                placeholder: '请选择发生时间',
                disabledDate: current => current && current._d > Date.now()
            }
        ]
    },
    {
        id: 't5',
        cat: 'c3',
        label: '测试段落',
        renderData: [
            {
                type: 'checkbox',
                name: 'checkbox',
                label: '发生时间',
                placeholder: '请选择发生时间',
                tips: [
                    {
                        value: 'checkbox1',
                        label: 'checkbox1'
                    },
                    {
                        value: 'checkbox2',
                        label: 'checkbox2'
                    }
                ]
            }
        ]
    }
];
const patient = {
    id: 'p1',
    NAME: '张三',
    BIRTH_OF_DATE: '1999-08-08',
    GENDER: 'F',
    PAY_TYPE: '费别-'
};
export {report, cates, types, patient};
